<!--
 * @FilePath: load1.vue
 * @@author: wjj
 * @Date: 2024-10-14 11:35:04
 * @@Description: new js file
-->
<template>
  <div class="login-load1-home-pyramid-loader">
    <div class="login-load1-home-wrapper">
      <span class="login-load1-home-side login-load1-home-side1"></span>
      <span class="login-load1-home-side login-load1-home-side2"></span>
      <span class="login-load1-home-side login-load1-home-side3"></span>
      <span class="login-load1-home-side login-load1-home-side4"></span>
      <span class="login-load1-home-shadow"></span>
    </div>
  </div>
</template>

<script setup lang="ts"></script>
<style scope lang="scss">
/* From Uiverse.io by andrew-demchenk0 */
.login-load1-home-pyramid-loader {
  position: relative;
  width: 20px;
  height: 20px;
  display: block;
  transform-style: preserve-3d;
  transform: rotateX(-20deg);
}

.login-load1-home-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: spin 4s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotateY(360deg);
  }
}

.login-load1-home-pyramid-loader
  .login-load1-home-wrapper
  .login-load1-home-side {
  width: 70px;
  height: 70px;
  /* you can choose any gradient or color you want */
  /* background: radial-gradient( #2F2585 10%, #F028FD 70%, #2BDEAC 120%); */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  transform-origin: center top;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.login-load1-home-pyramid-loader
  .login-load1-home-wrapper
  .login-load1-home-side1 {
  transform: rotateZ(-30deg) rotateY(90deg);
  background: conic-gradient(#2bdeac, #f028fd, #d8cce6, #2f2585);
}

.login-load1-home-pyramid-loader
  .login-load1-home-wrapper
  .login-load1-home-side2 {
  transform: rotateZ(30deg) rotateY(90deg);
  background: conic-gradient(#2f2585, #d8cce6, #f028fd, #2bdeac);
}

.login-load1-home-pyramid-loader
  .login-load1-home-wrapper
  .login-load1-home-side3 {
  transform: rotateX(30deg);
  background: conic-gradient(#2f2585, #d8cce6, #f028fd, #2bdeac);
}

.login-load1-home-pyramid-loader
  .login-load1-home-wrapper
  .login-load1-home-side4 {
  transform: rotateX(-30deg);
  background: conic-gradient(#2bdeac, #f028fd, #d8cce6, #2f2585);
}

.login-load1-home-pyramid-loader
  .login-load1-home-wrapper
  .login-load1-home-shadow {
  width: 60px;
  height: 60px;
  background: #8b5ad5;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  transform: rotateX(90deg) translateZ(-40px);
  filter: blur(12px);
}
</style>
